package com.amose.config;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author yangpeng
 * @time 2020/2/22
 * @since 1.0.0
 * 第一步：读取sqlMapConfig.xml
 */
public class Configuration {

    /**
     * 数据源配置
     */
    private DataSource dataSource;

    /**
     * sql存储集合  key为每条sql在每个mapper.xml的唯一标识    nameSpace.id
     *             value 为每条sql的基本信息
     */
    private Map<String,MapperStatement> sqlMapperStatement = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getSqlMapperStatement() {
        return sqlMapperStatement;
    }

    public void setSqlMapperStatement(Map<String, MapperStatement> sqlMapperStatement) {
        this.sqlMapperStatement = sqlMapperStatement;
    }
}
